/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ModulHåndtering;

/**
 *
 * @author Magnus
 */
class ControllerSkærm implements Controller {

    public ControllerSkærm() {
    }

    @Override
    public String overSætCmd(String cmd) {
        int cmd_int = 0;
        try {
            cmd_int = Integer.parseInt(cmd);
        } catch (NumberFormatException e) {
        }
        String temp_cmd = String.format("0T%04d", cmd_int);

        return Protokol.START_CMD + temp_cmd + Protokol.SLUT_CMD;
    }

}
